-- GENERATED SPELL FOR [Gordunni Back-Breaker] --


function spell0_22143(pUnit, Event) --@Enraging Strike,n/a--
pUnit:FullCastSpellOnTarget(37974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22143', 654, 1)
end

function spell1_22143(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15610,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22143', 6253, 1)
end

function Sorts_22143(pUnit, Event)
local choix_sorts_22143 = math.random(0, 1)
if choix_sorts_22143 == 0 then
pUnit:RegisterEvent('spell0_22143', 1, 1)
end
if choix_sorts_22143 == 1 then
pUnit:RegisterEvent('spell1_22143', 1, 1)
end
end

function mob22143_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22143', math.random(1500, 3000), 1)
end

function mob22143_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22143_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22143_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22143, 1, 'mob22143_Action')
RegisterUnitEvent(22143, 2, 'mob22143_Leave')
RegisterUnitEvent(22143, 3, 'mob22143_Kill')
RegisterUnitEvent(22143, 4, 'mob22143_Die')
